import requests
from loguru import logger

ip_url = 'https://dev.kdlapi.com/api/getfpsflow?secret_id=obss346i951tsqhmec0o&signature=h99jel42gvijyfatj64fsdx9bnuj6n87'
ip_res = requests.get(url=ip_url)
if ip_res.status_code == 200:
    js_data = ip_res.json()
    print(f"当前剩余流量{js_data['data']['flow_left']}MB")
    # logger.info(f"ip剩余额度: {js_data['data']['balance']}")
